import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store/index'
import vuetify from '@/plugins/vuetify'
import { Icon } from 'vant';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import '../node_modules/vue-mapbox/dist/vue-mapbox.css';
import '../node_modules/mapbox-gl/dist/mapbox-gl.css'

import 'vant/lib/index.css';
Vue.use(Icon);
Vue.use(ElementUI);

import VueKonva from 'vue-konva';
Vue.use(VueKonva)

import axios from 'axios';
import api from './http/api';
import http from './http/http';
// axios 拦截器
import './http/axios'

// 对后端接口 进行全局注册
Vue.prototype.$api = api;
// 对请求方式 进行全局注册
Vue.prototype.$http = http;
//将axios挂载在vue原型链上
Vue.prototype.$axios = axios;

import Video from 'video.js'
import 'video.js/dist/video-js.css'
Vue.prototype.$video = Video

require('./mock/mock.js')


Vue.config.productionTip = false

new Vue({
  router,
  store,
  vuetify,
  Icon,
  render: h => h(App)
}).$mount('#app')


